package com.fantasy.easy.biz.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fantasy.easy.biz.domain.BizBase;
import com.fantasy.easy.biz.domain.BizColla;
import com.fantasy.easy.biz.service.BizCollaService;
import com.fantasy.easy.biz.mapper.BizCollaMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 *
 */
@Service
public class BizCollaServiceImpl extends ServiceImpl<BizCollaMapper, BizColla>
    implements BizCollaService{

    @Resource
    BizCollaMapper bizCollaMapper;

    @Override
    public IPage<BizColla> queryAll(BizColla bizColla, Page<BizColla> p) {
        return bizCollaMapper.selectPage(p,new QueryWrapper<>(bizColla));
    }

    @Override
    public int insert(BizColla bizColla) {
        return bizCollaMapper.updateById(bizColla);
    }


}




